<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<%@taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<jsp:useBean id="params" class="java.util.HashMap" />
<HTML>
<HEAD><TITLE>Success</TITLE></HEAD>
<BODY BGCOLOR="#FDF5E6">
<CENTER>
<c:if test="${newUser}">
<H1>You have been successfully registered</H1>

Congratulations !!!
</c:if>
<ul>
<li>Your email address:
<c:out value="${RegistrationForm.email}" />
</li>
<li>Your Password:
<c:out value="${RegistrationForm.password}" />
</li>
</ul>
</CENTER>

<table>
<c:forEach items="${userList}" var="user" varStatus="status">
<tr>
	<c:set target="${params}" property="userId" value="${user.id}" />
	<c:set target="${params}" property="userEmail" value="${user.email}" />
	<c:set target="${params}" property="userPassword" value="${user.password}" />
	<td><c:out value="${status.index}"/></td>
	<!-- <td><a href="javascript:alert('<c:out value="${user.id}"/>')"><c:out value="${user.email}"/></a></td>  -->
	<td>
		<html:link action="/editUser" name="params"><c:out value="${user.email}"/></html:link>
		<!-- manera alternativa
		<a href="javascript:window.open('<html:rewrite action="/editUser" name="params"/>')">
			<c:out value="${user.email}"/>
		</a>
		-->
	</td>
	<td><c:out value="${user.password}"/></td>
</tr>
</c:forEach>
</table>
</BODY></HTML>